import { Pipe, PipeTransform } from '@angular/core';
import { ZoneService } from 'app/modules/zone/services/zone.service';

@Pipe({
	name: 'zoneInfo',
})
export class ZoneInfoPipe implements PipeTransform {
	constructor(private zoneService: ZoneService) {}
	transform(zoneID: number | string): any {
		return this.zoneService.get(Number(zoneID));
	}
}
